
const Router = require('../vendor/Router.class.js');


// 获取路由配置
function getAdminRouters() {
  let route = new Router();

  // 获取图片
  route.get('/api/image/', 'api/ChartController.image');

  // 获取实例列表
  // http://localhost:3000/api/chart/list?sort=viewCount&pageNo=0&pageSize=10&order=desc
  route.get('/api/chart/list', 'api/ChartController.list');

  // 获取实例详情
  route.get('/api/chart/detail', 'api/ChartController.detail');
  
  return route;
}
module.exports = getAdminRouters;




